﻿define(function () {
    var m = {
        prepare: function () {
            var koitems = $("#listProducts");
            koitems.bengBind({
                get: {
                    url: "/api/ManageApi/GetList",
                    data: { pageLength: 10 }
                }
            });
        }
    }
    return m;
});
var mergemodel = {
    model: {
    }
};

var ProductUpdate = function (e) {
    $.ajax({
        url: "/api/ManageApi/ProductUpdate",
        datatype: "json",
        type: "POST",
        cache: false,
        contentType: 'application/json',
        success: function (data) {
            $("#listProducts").bengBind("refresh");
        }
    });
    return false;
}
